module.exports = [
  {
    key: 'phone',
    title: '手机号',
    dataType: 'varchar',
    rules: [{ required: true, message: '请输入正确的手机号', pattern: /^1[34578]\d{9}$/ }],
  },
  {
    key: 'username',
    title: '用户昵称',
    dataType: 'varchar',
    rules: [{ required: true, message: '请输入登录名称' }]
  },
  {
    key: 'realname',
    title: '用户名字',
    dataType: 'varchar',
    rules: [{ required: true, message: '请输入真实名字' }]
  },
  {
  	key: 'plainPassword',
    title: '密码',
    dataType: 'varchar',
    rules: [{ required: true, message: '请输入密码' }]
  },
  {
    key: 'email',
    title: '邮箱地址',
    dataType: 'varchar',
    rules: [{
              type: 'email', message: '请输入正确的邮箱格式',
            }, {
              required: true, message: '请输人邮箱',
     }],
  },
  {
    key: 'status',
    title: '账户状态',
    dataType: 'select',
    options:[{
      key:"enabled",
      value:"enabled",
      name:"可用"
    },
    {
      key:"disabled",
      value:"disabled",
      name:"不可用"
    }
    ],
    rules: [{ required: true, message: '请选择状态' }],
    initialValue: "enabled",
  }
];
